package com.rongma.waterdrop.utils;

import android.text.TextUtils;
import android.util.Log;

import com.rongma.waterdrop.global.WaterDropApplication;

/**
 * Log日志的工具类
 * 1.仅显示Log.e级别的日志
 * 2.日志的tag为前缀:类名
 * 3.日志的value为"日志内容"
 * Created by RongMa on 16/5/20.
 */
public class LogUtils
{
    private static final String TAG_PREFIX = "waterdrop"; //自定义TAG的前缀

    private static String className = Thread.currentThread().getStackTrace()[4].getClassName();

    public static void show(String message)
    {
        if(WaterDropApplication.getApplication().IS_DEBUG)
        {
            Log.e(TAG_PREFIX+":"+className,message);
        }
    }

}
